Package jeresources.api.util
Class LootFunctionHelper
java.lang.Object
jeresources.api.util.LootFunctionHelper
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.storage.loot.LootContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyFunction(net.minecraft.world.level.storage.loot.functions.LootItemFunction lootFunction, LootDrop lootDrop) static intgetMax(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange) static intgetMin(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange)
-
Field Details
-
randContext
public static final net.minecraft.world.level.storage.loot.LootContext randContext
-
-
Constructor Details
-
LootFunctionHelper
public LootFunctionHelper()
-
-
Method Details
-
applyFunction
public static void applyFunction(net.minecraft.world.level.storage.loot.functions.LootItemFunction lootFunction, LootDrop lootDrop) -
getMin
public static int getMin(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange) -
getMax
public static int getMax(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange)
-